//
//  UIImage+Extend.h
//  WOM
//
//  Created by leeqb on 3/13/14.
//  Copyright (c) 2014 cst. All rights reserved.
//

#import <UIKit/UIKit.h>

@interface UIImage (Extend)

// 创建纯色图片
+ (UIImage *)imageWithColor:(UIColor *)color size:(CGSize)size;

// 缩放图片
+ (UIImage *)scaleImage:(UIImage *)image scale:(CGFloat)scale;

// 默认下载图片
+ (UIImage *)getDownloadDefaultImage:(CGSize)imgSize;

- (UIColor *)colorAtPixel:(CGPoint)point;

/** 获得自定义虚线(横) */
+ (UIImageView *)imageLineDashRow:(CGRect)frame len:(int)len gap:(int)gap color:(UIColor *)c;

/** 获得自定义虚线(竖) */
+ (UIImageView *)imageLineDashCol:(CGRect)frame len:(int)len gap:(int)gap color:(UIColor *)c;

/** 获取默认加载图片 */
+ (UIImage *)getDefaultImageInSize:(CGSize)size;

@end
